package com.czapl.mygdxgame;

public class CellCoordinates {
    private int m_x = 0;
    private int m_y = 0;
    
    public CellCoordinates(int x, int y) {
    	m_x = x;
    	m_y = y;
    }
    
    public CellCoordinates clone() {
    	return new CellCoordinates(m_x, m_y);
    }
    
    public void set(int x, int y) {
    	m_x = x;
    	m_y = y;
    }
    
    public int getX() {
    	return m_x;
    }
    
    public int getY() {
    	return m_y;
    }
    
    public void assign(CellCoordinates cellCoordinates) {
    	m_x = cellCoordinates.m_x;
    	m_y = cellCoordinates.m_y;
    }
    
    public boolean equals(CellCoordinates cellCoordinates) {
    	if( (m_x == cellCoordinates.m_x) && (m_y == cellCoordinates.m_y) ) {
    		return true;
    	}
    	return false;
    }
}